package com.wkbb.common.enums;

public enum MpAuthTypeEnum {

    //授权的帐号类型(1公众号2小程序3二者
    MP(1,"公众号"),
    MINI(2,"小程序"),
    ALL(3,"二者");

    private MpAuthTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;

    private String desc;

    public Integer getValue() {
        return this.value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDesc(Integer value) {
        for (MpAuthTypeEnum mpAuthTypeEnum : MpAuthTypeEnum.values()) {
            if (mpAuthTypeEnum.getValue().intValue()==value) {
                return mpAuthTypeEnum.getDesc();
            }
        }
        return null;
    }
}
